i=1
while i<=100:
    if i % 3==2 and i % 5==3 and i % 7==2:
        print(i)
    i+=1

